<!--
 * @Author: Haochen
 * @Date: 2021-12-07 15:51:58
 * @LastEditTime: 2021-12-07 16:12:56
 * @FilePath: \students-system\src\views\register\Register.vue
-->
<template>
  <div>
    <h1>注册</h1>
    <button @click="register">注册</button>
    <router-link to="/login">已账号，去登录</router-link>
  </div>
</template>

<script>
export default {
  methods: {
    register() {
      alert('注册成功！');
      this.$router.push('\login');
    },
  },
};
</script>

<style></style>
